-- GENERATED SPELL FOR [Skithian Windripper] --


function spell0_18453(pUnit, Event) --@Arakkoa Blast,n/a--
pUnit:FullCastSpellOnTarget(32907,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18453', 638, 1)
end

function spell1_18453(pUnit, Event) --@Power of Kran\'aish,n/a--
pUnit:FullCastSpellOnTarget(32924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18453', 0, 1)
end

function spell2_18453(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(16561,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18453', 23000, 1)
end

function Sorts_18453(pUnit, Event)
local choix_sorts_18453 = math.random(0, 2)
if choix_sorts_18453 == 0 then
pUnit:RegisterEvent('spell0_18453', 1, 1)
end
if choix_sorts_18453 == 1 then
pUnit:RegisterEvent('spell1_18453', 1, 1)
end
if choix_sorts_18453 == 2 then
pUnit:RegisterEvent('spell2_18453', 1, 1)
end
end

function mob18453_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18453', math.random(1500, 3000), 1)
end

function mob18453_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18453_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18453_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18453, 1, 'mob18453_Action')
RegisterUnitEvent(18453, 2, 'mob18453_Leave')
RegisterUnitEvent(18453, 3, 'mob18453_Kill')
RegisterUnitEvent(18453, 4, 'mob18453_Die')
